<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');

/**
 * Class ProjectDetail
 */
class ProjectDetail extends Module
{
	/**
	 * Template
	 * @var string
	 */
	protected $strTemplate = 'mod_project_detail';


	/**
	 * Display a wildcard in the back end
	 * @return string
	 */
	public function generate()
	{
		return parent::generate();
	}

	/**
	 * Generate module
	 */
	protected function compile()
	{
			$this->project_id = $this->Input->get("id") ? $this->Input->get("id") : $this->Input->post("id");
			$this->bds = $this->Input->get("bds") ? $this->Input->get("bds") : $this->Input->post("bds");
			$objProject  =$this->Database->prepare("SELECT * FROM tl_project WHERE id=".$this->project_id);
			$objProject = $objProject->execute();
			$arrProject = $objProject->fetchAllAssoc();
			$this->Template->project = $arrProject[0];
			$this->Template->bds = $this->bds;
	}
}
?>